<table id="tgs">
    <thead>
        <tr>
            <th>${message(code: 'moc.tg.id.label', default: 'Id')}</th>
            <th><g:message code="moc.td.td001.label" default="Td001" /></th>
            <th><g:message code="moc.td.td003.label" default="Td003" /></th>
            <th>${message(code: 'moc.tg.tg001.label', default: 'Tg001')}</th>
            <th>${message(code: 'moc.td.td002.label', default: 'Td002')}</th>
            <th>${message(code: 'moc.tg.tg003.label', default: 'Tg003')}</th>
            <th><g:message code="moc.tg.tc.label" default="Tc" /></th>
        </tr>
    </thead>
    <tbody>
    <g:each in="${tgInstanceList}" status="i" var="tgInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link controller="tg" action="edit" id="${tgInstance.id}">${fieldValue(bean: tgInstance, field: "id")}</g:link></td>
            <td>${fieldValue(bean: tgInstance, field: "td.td001")}</td>
            <td>${fieldValue(bean: tgInstance, field: "td.td003")}</td>
            <td>${fieldValue(bean: tgInstance, field: "tg001")}</td>
            <td>${fieldValue(bean: tgInstance, field: "tg002")}</td>
            <td><g:formatNumber number="${tgInstance.tg003}" format="###,##0.00" /></td>
            <td>${fieldValue(bean: tgInstance, field: "tc.tc001")}</td>
        </tr>
    </g:each>
    </tbody>
</table>